From 722ec20bad64d8c69b173c163011d37ad0b55591 Mon Sep 17 00:00:00 2001
From: Armand Philippot <git@armandphilippot.com>
Date: Thu, 6 Jan 2022 19:27:45 +0100
Subject: chore: move Main grid to its children

This way I can use full width background for some blocks.
---
 src/pages/article/[slug].tsx | 14 +++++++++-----
 1 file changed, 9 insertions(+), 5 deletions(-)

(limited to 'src/pages/article/[slug].tsx')

diff --git a/src/pages/article/[slug].tsx b/src/pages/article/[slug].tsx
index e8df85e..e906d12 100644
--- a/src/pages/article/[slug].tsx
+++ b/src/pages/article/[slug].tsx
@@ -18,6 +18,7 @@ import { useRouter } from 'next/router';
 import Prism from 'prismjs';
 import { ParsedUrlQuery } from 'querystring';
 import { useEffect } from 'react';
+import styles from '@styles/pages/Page.module.scss';
 
 const SingleArticle: NextPageWithLayout<ArticleProps> = ({ post }) => {
   const {
@@ -57,17 +58,20 @@ const SingleArticle: NextPageWithLayout<ArticleProps> = ({ post }) => {
         <title>{seo.title}</title>
         <meta name="description" content={seo.metaDesc} />
       </Head>
-      <article>
+      <article className={styles.article}>
         <PostHeader intro={intro} meta={meta} title={title} />
-        <aside>
+        <aside className={styles.toc}>
           <ToC />
         </aside>
-        <div dangerouslySetInnerHTML={{ __html: content }}></div>
+        <div
+          className={styles.body}
+          dangerouslySetInnerHTML={{ __html: content }}
+        ></div>
         <PostFooter subjects={subjects} />
-        <aside>
+        <aside className={styles.aside}>
           <Sharing title={title} excerpt={intro} />
         </aside>
-        <section>
+        <section className={styles.comments}>
           <h2>{t`Comments`}</h2>
           <CommentsList comments={comments} />
           <h2>{t`Leave a comment`}</h2>
-- 
cgit v1.2.3

